package com.prs.crm.service.hr.impl;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.hr.DeptDao;
import com.prs.crm.domain.hr.Dept;
import com.prs.crm.service.hr.DeptService;
import com.prs.crm.service.impl.BaseServiceImpl;

public class DeptServiceImpl extends BaseServiceImpl<Dept,DeptDao> implements DeptService{
	
	public Collection<Dept> getAllDepts()
	{
		return this.getDao().getAllDepts();
	}
	
	public Collection<Dept> getRootDepts()
	{
		return this.getDao().getRootDepts();
	}

	@Override
	public List<Dept> getAllDept() {
		
		return this.getDao().getAllDept();
	}

	@Override
	public Dept getDeptByName(String name) {
		// TODO Auto-generated method stub
		return this.getDao().getDeptByName(name);
	}
}
